#include "library.h"

DWORD g_hookAddr = 0xE61ACB;

BOOL WINAPI DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpReversed) {

    if (dwReason == DLL_PROCESS_ATTACH) {

        DisableThreadLibraryCalls(hModule);

        // 添加异常处理函数
        AddVectoredExceptionHandler(1, reinterpret_cast<PVECTORED_EXCEPTION_HANDLER>(ExceptionFilter));

        // Veh Hook
        SetVehHook(g_hookAddr);

    }

    return TRUE;
}